<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtPlotDirectPainter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_plot_direct_painter.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_qwt_plot_direct_painter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtPlotDirectPainter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Painter object trying to paint incrementally.  
 <a href="class_qwt_plot_direct_painter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__plot__directpainter_8h_source.html">qwt_plot_directpainter.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtPlotDirectPainter:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_plot_direct_painter__inherit__graph.png" border="0" usemap="#_qwt_plot_direct_painter_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_plot_direct_painter_inherit__map" id="_qwt_plot_direct_painter_inherit__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a38f72175526a1a748d311763707cf934"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a> { <a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934a95bfb017daa98b23665c1de06e8bd8e5">AtomicPainter</a> = 0x01, 
<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934a133cb5ae512ffa0f0633c9d7bd423ff4">FullRepaint</a> = 0x02, 
<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934a8b04f057d6223852a87bdd319dcf4711">CopyBackingStore</a> = 0x04
 }</td></tr>
<tr class="memdesc:a38f72175526a1a748d311763707cf934"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint attributes.  <a href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">More...</a><br /></td></tr>
<tr class="separator:a38f72175526a1a748d311763707cf934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a66587377067b3bc0539274370693f"><td class="memItemLeft" align="right" valign="top"><a id="a26a66587377067b3bc0539274370693f"></a>
typedef QFlags&lt; <a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a26a66587377067b3bc0539274370693f">Attributes</a></td></tr>
<tr class="memdesc:a26a66587377067b3bc0539274370693f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint attributes. <br /></td></tr>
<tr class="separator:a26a66587377067b3bc0539274370693f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af9e6e2056afd4db4c081e4b04d5c9a85"><td class="memItemLeft" align="right" valign="top"><a id="af9e6e2056afd4db4c081e4b04d5c9a85"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#af9e6e2056afd4db4c081e4b04d5c9a85">QwtPlotDirectPainter</a> (QObject *parent=NULL)</td></tr>
<tr class="memdesc:af9e6e2056afd4db4c081e4b04d5c9a85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:af9e6e2056afd4db4c081e4b04d5c9a85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab96bfd08e9041c2552210bbd3ee5ad0"><td class="memItemLeft" align="right" valign="top"><a id="aab96bfd08e9041c2552210bbd3ee5ad0"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#aab96bfd08e9041c2552210bbd3ee5ad0">~QwtPlotDirectPainter</a> ()</td></tr>
<tr class="memdesc:aab96bfd08e9041c2552210bbd3ee5ad0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aab96bfd08e9041c2552210bbd3ee5ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498b9857a09e399010a3f8bc9c235a8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a498b9857a09e399010a3f8bc9c235a8d">setAttribute</a> (<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>, bool on)</td></tr>
<tr class="separator:a498b9857a09e399010a3f8bc9c235a8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6845dec4b18c65f1b3f92af2533dd99c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a6845dec4b18c65f1b3f92af2533dd99c">testAttribute</a> (<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>) const</td></tr>
<tr class="separator:a6845dec4b18c65f1b3f92af2533dd99c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3d406aada74b7d9202c1017d8347708"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping</a> (bool)</td></tr>
<tr class="separator:ac3d406aada74b7d9202c1017d8347708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c4880e1cda809cd8994e6c255757b2a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping</a> () const</td></tr>
<tr class="separator:a1c4880e1cda809cd8994e6c255757b2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c97174b06957f9b20ea295ff403a557"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557">setClipRegion</a> (const QRegion &amp;)</td></tr>
<tr class="memdesc:a0c97174b06957f9b20ea295ff403a557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign a clip region and enable clipping.  <a href="#a0c97174b06957f9b20ea295ff403a557">More...</a><br /></td></tr>
<tr class="separator:a0c97174b06957f9b20ea295ff403a557"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a810697bf94f7589c8efc13935321b4ce"><td class="memItemLeft" align="right" valign="top">QRegion&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion</a> () const</td></tr>
<tr class="separator:a810697bf94f7589c8efc13935321b4ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacc2e1d79dd410cb1a4404fbc00290bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd">drawSeries</a> (<a class="el" href="class_qwt_plot_series_item.html">QwtPlotSeriesItem</a> *, int from, int to)</td></tr>
<tr class="memdesc:aacc2e1d79dd410cb1a4404fbc00290bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a set of points of a seriesItem.  <a href="#aacc2e1d79dd410cb1a4404fbc00290bd">More...</a><br /></td></tr>
<tr class="separator:aacc2e1d79dd410cb1a4404fbc00290bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a895bf1ebfd772a2200dc09bed596cf4d"><td class="memItemLeft" align="right" valign="top"><a id="a895bf1ebfd772a2200dc09bed596cf4d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a895bf1ebfd772a2200dc09bed596cf4d">reset</a> ()</td></tr>
<tr class="memdesc:a895bf1ebfd772a2200dc09bed596cf4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close the internal QPainter. <br /></td></tr>
<tr class="separator:a895bf1ebfd772a2200dc09bed596cf4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab421bd757679b61f1dcfde2991500ab2"><td class="memItemLeft" align="right" valign="top"><a id="ab421bd757679b61f1dcfde2991500ab2"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#ab421bd757679b61f1dcfde2991500ab2">eventFilter</a> (QObject *, QEvent *)</td></tr>
<tr class="memdesc:ab421bd757679b61f1dcfde2991500ab2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Event filter. <br /></td></tr>
<tr class="separator:ab421bd757679b61f1dcfde2991500ab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Painter object trying to paint incrementally. </p>
<p>Often applications want to display samples while they are collected. When there are too many samples complete replots will be expensive to be processed in a collection cycle.</p>
<p><a class="el" href="class_qwt_plot_direct_painter.html" title="Painter object trying to paint incrementally. ">QwtPlotDirectPainter</a> offers an API to paint subsets ( f.e all additions points ) without erasing/repainting the plot canvas.</p>
<p>On certain environments it might be important to calculate a proper clip region before painting. F.e. for Qt Embedded only the clipped part of the backing store will be copied to a ( maybe unaccelerated ) frame buffer.</p>
<dl class="section warning"><dt>Warning</dt><dd>Incremental painting will only help when no replot is triggered by another operation ( like changing scales ) and nothing needs to be erased. </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a38f72175526a1a748d311763707cf934"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38f72175526a1a748d311763707cf934">&#9670;&nbsp;</a></span>Attribute</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">QwtPlotDirectPainter::Attribute</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Paint attributes. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a498b9857a09e399010a3f8bc9c235a8d">setAttribute()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a6845dec4b18c65f1b3f92af2533dd99c">testAttribute()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd" title="Draw a set of points of a seriesItem. ">drawSeries()</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a38f72175526a1a748d311763707cf934a95bfb017daa98b23665c1de06e8bd8e5"></a>AtomicPainter&#160;</td><td class="fielddoc"><p>Initializing a QPainter is an expensive operation. When AtomicPainter is set each call of <a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd" title="Draw a set of points of a seriesItem. ">drawSeries()</a> opens/closes a temporary QPainter. Otherwise <a class="el" href="class_qwt_plot_direct_painter.html" title="Painter object trying to paint incrementally. ">QwtPlotDirectPainter</a> tries to use the same QPainter as long as possible. </p>
</td></tr>
<tr><td class="fieldname"><a id="a38f72175526a1a748d311763707cf934a133cb5ae512ffa0f0633c9d7bd423ff4"></a>FullRepaint&#160;</td><td class="fielddoc"><p>When FullRepaint is set the plot canvas is explicitly repainted after the samples have been rendered. </p>
</td></tr>
<tr><td class="fieldname"><a id="a38f72175526a1a748d311763707cf934a8b04f057d6223852a87bdd319dcf4711"></a>CopyBackingStore&#160;</td><td class="fielddoc"><p>When <a class="el" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0fa7b88a46e1414f6d904aa494c89d064f3" title="Paint double buffered reusing the content of the pixmap buffer when possible. ">QwtPlotCanvas::BackingStore</a> is enabled the painter has to paint to the backing store and the widget. In certain situations/environments it might be faster to paint to the backing store only and then copy the backing store to the canvas. This flag can also be useful for settings, where Qt fills the the clip region with the widget background. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a810697bf94f7589c8efc13935321b4ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a810697bf94f7589c8efc13935321b4ce">&#9670;&nbsp;</a></span>clipRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRegion QwtPlotDirectPainter::clipRegion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Currently set clip region. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557" title="Assign a clip region and enable clipping. ">setClipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping()</a> </dd></dl>

</div>
</div>
<a id="aacc2e1d79dd410cb1a4404fbc00290bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacc2e1d79dd410cb1a4404fbc00290bd">&#9670;&nbsp;</a></span>drawSeries()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::drawSeries </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_plot_series_item.html">QwtPlotSeriesItem</a> *&#160;</td>
          <td class="paramname"><em>seriesItem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draw a set of points of a seriesItem. </p>
<p>When observing an measurement while it is running, new points have to be added to an existing seriesItem. <a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd" title="Draw a set of points of a seriesItem. ">drawSeries()</a> can be used to display them avoiding a complete redraw of the canvas.</p>
<p>Setting plot()-&gt;canvas()-&gt;setAttribute(Qt::WA_PaintOutsidePaintEvent, true); will result in faster painting, if the paint engine of the canvas widget supports this feature.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">seriesItem</td><td>Item to be painted </td></tr>
    <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
    <tr><td class="paramname">to</td><td>Index of the last point to be painted. If to &lt; 0 the series will be painted to its last point. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1c4880e1cda809cd8994e6c255757b2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c4880e1cda809cd8994e6c255757b2a">&#9670;&nbsp;</a></span>hasClipping()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtPlotDirectPainter::hasClipping </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true, when clipping is enabled </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557" title="Assign a clip region and enable clipping. ">setClipRegion()</a> </dd></dl>

</div>
</div>
<a id="a498b9857a09e399010a3f8bc9c235a8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a498b9857a09e399010a3f8bc9c235a8d">&#9670;&nbsp;</a></span>setAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::setAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change an attribute</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Attribute to change </td></tr>
    <tr><td class="paramname">on</td><td>On/Off</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934" title="Paint attributes. ">Attribute</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a6845dec4b18c65f1b3f92af2533dd99c">testAttribute()</a> </dd></dl>

</div>
</div>
<a id="ac3d406aada74b7d9202c1017d8347708"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3d406aada74b7d9202c1017d8347708">&#9670;&nbsp;</a></span>setClipping()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::setClipping </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>En/Disables clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enable</td><td>Enables clipping is true, disable it otherwise </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557" title="Assign a clip region and enable clipping. ">setClipRegion()</a> </dd></dl>

</div>
</div>
<a id="a0c97174b06957f9b20ea295ff403a557"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c97174b06957f9b20ea295ff403a557">&#9670;&nbsp;</a></span>setClipRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::setClipRegion </td>
          <td>(</td>
          <td class="paramtype">const QRegion &amp;&#160;</td>
          <td class="paramname"><em>region</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assign a clip region and enable clipping. </p>
<p>Depending on the environment setting a proper clip region might improve the performance heavily. F.e. on Qt embedded only the clipped part of the backing store will be copied to a ( maybe unaccelerated ) frame buffer device.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">region</td><td>Clip region </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping()</a> </dd></dl>

</div>
</div>
<a id="a6845dec4b18c65f1b3f92af2533dd99c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6845dec4b18c65f1b3f92af2533dd99c">&#9670;&nbsp;</a></span>testAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtPlotDirectPainter::testAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, when attribute is enabled </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Attribute to be tested </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934" title="Paint attributes. ">Attribute</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a498b9857a09e399010a3f8bc9c235a8d">setAttribute()</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_plot_direct_painter.html">QwtPlotDirectPainter</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
